package order

// OrderDetail 订单详情表
type OrderDetail struct {
	global.BaseModel
	OrderNo string `json:"orderNo" gorm:"column=order_no;comment:订单号"`

	MerId int32 `json:"merId" gorm:"column=mer_id;comment:商户ID"`

	Uid int32 `json:"uid" gorm:"column=uid;comment:用户id"`

	ProductId int32 `json:"productId" gorm:"column=product_id;comment:商品ID"`

	ProductName string `json:"productName" gorm:"column=product_name;comment:商品名称"`

	Image string `json:"image" gorm:"column=image;comment:商品图片"`

	AttrValueId int32 `json:"attrValueId" gorm:"column=attr_value_id;comment:商品规格值 ID"`

	Sku string `json:"sku" gorm:"column=sku;comment:商品sku"`

	Price big.Float `json:"price" gorm:"column=price;comment:商品单价"`

	VipPrice big.Float `json:"vipPrice" gorm:"column=vip_price;comment:会员价格"`

	PayPrice big.Float `json:"payPrice" gorm:"column=pay_price;comment:实际支付金额"`

	PayNum int32 `json:"payNum" gorm:"column=pay_num;comment:购买数量"`

	Weight big.Float `json:"weight" gorm:"column=weight;comment:重量"`

	Volume big.Float `json:"volume" gorm:"column=volume;comment:体积"`

	IsReply bool `json:"isReply" gorm:"column=is_reply;comment:是否评价，0-未评价，1-已评价"`

	IsReceipt bool `json:"isReceipt" gorm:"column=is_receipt;comment:是否收货，0-未收货，1-已收货"`

	SubBrokerageType int32 `json:"subBrokerageType" gorm:"column=sub_brokerage_type;comment:分佣类型:0-不参与分佣，1-单独分佣，2-默认分佣"`

	Brokerage int32 `json:"brokerage" gorm:"column=brokerage;comment:一级返佣比例"`

	BrokerageTwo int32 `json:"brokerageTwo" gorm:"column=brokerage_two;comment:二级返佣比例"`

	FreightFee big.Float `json:"freightFee" gorm:"column=freight_fee;comment:运费金额"`

	CouponPrice big.Float `json:"couponPrice" gorm:"column=coupon_price;comment:优惠券金额"`

	UseIntegral int32 `json:"useIntegral" gorm:"column=use_integral;comment:使用积分"`

	IntegralPrice big.Float `json:"integralPrice" gorm:"column=integral_price;comment:积分抵扣金额"`

	GainIntegral int32 `json:"gainIntegral" gorm:"column=gain_integral;comment:赠送积分"`

	ProductType int32 `json:"productType" gorm:"column=product_type;comment:商品类型:0-普通，1-秒杀，2-砍价，3-拼团，4-视频号"`

	FirstBrokerageFee big.Float `json:"firstBrokerageFee" gorm:"column=first_brokerage_fee;comment:一级返佣金额"`

	SecondBrokerageFee big.Float `json:"secondBrokerageFee" gorm:"column=second_brokerage_fee;comment:二级返佣金额"`

	DeliveryNum int32 `json:"deliveryNum" gorm:"column=delivery_num;comment:发货数量"`

	ApplyRefundNum int32 `json:"applyRefundNum" gorm:"column=apply_refund_num;comment:申请退款数量"`

	RefundNum int32 `json:"refundNum" gorm:"column=refund_num;comment:退款数量"`

	RefundPrice big.Float `json:"refundPrice" gorm:"column=refund_price;comment:退款金额"`

	RefundUseIntegral int32 `json:"refundUseIntegral" gorm:"column=refund_use_integral;comment:退使用积分"`

	RefundIntegralPrice big.Float `json:"refundIntegralPrice" gorm:"column=refund_integral_price;comment:退款积分抵扣金额"`

	RefundGainIntegral int32 `json:"refundGainIntegral" gorm:"column=refund_gain_integral;comment:退赠送积分"`

	RefundFirstBrokerageFee big.Float `json:"refundFirstBrokerageFee" gorm:"column=refund_first_brokerage_fee;comment:退一级返佣金额"`

	RefundSecondBrokerageFee big.Float `json:"refundSecondBrokerageFee" gorm:"column=refund_second_brokerage_fee;comment:退二级返佣金额"`

	MerName string `json:"merName" gorm:"column=mer_name;comment:商户名称"`

	MerCouponPrice big.Float `json:"merCouponPrice" gorm:"column=mer_coupon_price;comment:商户优惠券金额"`

	PlatCouponPrice big.Float `json:"platCouponPrice" gorm:"column=plat_coupon_price;comment:平台优惠券金额"`

	RefundPlatCouponPrice big.Float `json:"refundPlatCouponPrice" gorm:"column=refund_plat_coupon_price;comment:退还平台优惠券金额"`

	RefundFreightFee big.Float `json:"refundFreightFee" gorm:"column=refund_freight_fee;comment:退运费金额"`
}
